package edu.yctc.delivery.entity;

import java.time.LocalDateTime;

/**
 * TruckDO实体类
 * 
 * @author 渠立庆
 */
public class TruckDO {

    /** 主键 */
    private long id;
    /** 车牌号 */
    private String number;
    /** 载货量 */
    private double capacity;
    /** 速度 */
    private double speed;
    /** 开销费用 */
    private double cost;
    /** 最大行驶距离 */
    private double maxDistance;
    /** 创建时间 */
    private LocalDateTime createTime;
    /** 修改时间 */
    private LocalDateTime modifyTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public double getCapacity() {
        return capacity;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }

    public double getSpeed() {
        return speed;
    }

    public void setSpeed(double speed) {
        this.speed = speed;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public double getMaxDistance() {
        return maxDistance;
    }

    public void setMaxDistance(double maxDistance) {
        this.maxDistance = maxDistance;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("TruckDO [id=");
        builder.append(id);
        builder.append(", number=");
        builder.append(number);
        builder.append(", capacity=");
        builder.append(capacity);
        builder.append(", speed=");
        builder.append(speed);
        builder.append(", cost=");
        builder.append(cost);
        builder.append(", maxDistance=");
        builder.append(maxDistance);
        builder.append(", createTime=");
        builder.append(createTime);
        builder.append(", modifyTime=");
        builder.append(modifyTime);
        builder.append("]");
        return builder.toString();
    }

}
